package com.techstar.mqttprocesser.service.mqtt.config;

import com.techstar.mqttprocesser.service.mqtt.model.AuthType;
import com.techstar.mqttprocesser.service.mqtt.model.TopicType;
import lombok.Data;

import java.util.List;

/**
 * @author lilei
 * @create 2025-03-27-2025/3/27
 */
@Data
public class MqttClientProperties {
    private AuthType authType = AuthType.NONE; // 默认无认证

    private String clientId;
    private String protocol;
    private String host;
    private int port;
    private String username;
    private String password;

    @Data
    public static class TopicConfig {
        private String topic;
        private int qos;
        private TopicType topicType;
    }

    private List<TopicConfig> subscribeTopics;
    private List<TopicConfig> publishTopics;
}
